import { axios } from "../../../utils/request";

const api = {
    list: "/crm/callTaskDetail/list",                           //查询 任务明细
    addCallTaskDetail: "/crm/callTaskDetail/addCallTaskDetail", //从 现有客户中  添加 联系人 到任务明细
    batchDelete: "/crm/callTaskDetail/batchDelete",             //批量删除
};


/**
 * 查询 任务明细
 */
export function list(data) {
    return axios({
      url: api.list,
      method: "post",
      data: data
    });
  }

/**
 * 从 现有客户中  添加 联系人 到任务明细
 */
export function addCallTaskDetail(data) {
  return axios({
    url: api.addCallTaskDetail,
    method: "post",
    data: data
  });
}

/**
 *批量删除
 */
export function batchDelete(parameter) {
  return axios({
    url: api.batchDelete,
    method: "DELETE",
    params: parameter
  });
}


